import React, { useEffect } from 'react';
import store from '../redux/store';

function NotFound(){
    useEffect(()=>{
        // console.log("进入404")
        //store.dispatch通知
        store.dispatch({
            type:"404传的消息",
            val:"碰磕"
        })
        return()=>{
            console.log("销毁...");
        }
    },[])
    return (
        <div>
            404
        </div>
    );
}

export default NotFound